<template>
  <el-container>
    <el-header>
      <Header></Header>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <Aside></Aside>
      </el-aside>
      <el-main>
        <h3 style="text-align: center">编辑分类</h3>

        <category-mod
          :catid="catid"
          module="article"
          add_url="/api/article/category_add"
          lst_url="/api/article/category_lst"
          mod_url="/api/article/category_mod"
          del_url="/api/article/category_del"
          preview_url="/api/article/category_preview"
        ></category-mod>
      </el-main>
    </el-container>
    <el-footer>
      <Footer></Footer>
    </el-footer>
  </el-container>
</template>

<script>
export default {
  async onLoad(query) {
    this.catid = parseInt(query.catid);
  },
  data() {
    return {
      catid: 0,
    };
  },
  async mounted() {},
  methods: {},
};
</script>

<style scoped>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
}

.el-main {
  
  color: #333;
  
}
</style>
